Skip to content

feat(installations): create installations from CLI - #325

Open
caiopizzol wants to merge 1 commit into
amp-labs:mainfrom
caiopizzol:feat/create-installation
Open

feat(installations): create installations from CLI#325
caiopizzol wants to merge 1 commit into
amp-labs:mainfrom
caiopizzol:feat/create-installation

Conversation

@caiopizzol

Copy link
Copy Markdown
Contributor

Creating an installation previously required an embedded UI or a direct API call.

This adds amp create:installation <integrationId>. The command requires a group reference, connection ID, and JSON file containing config.content. It rejects unreadable, malformed, and non-object config files before calling the API. Ampersand still performs schema and sample-read validation.

This first version does not generate config, select a default connection, or skip sampling.

Tests cover config loading, invalid input, request construction, and the API response.

Validation:

  • go test ./...
  • go vet ./...
  • go build ./...
  • golangci-lint v2.9.0
  • Production end-to-end test created a healthy Asana installation and verified it with list:installations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant